//#include "HDF5Read.h"
//
///*!
//* \brief This construct function:
//* If filename does not exist, CHDF5Write creates it. If filename exists, CHDF5Write overwrites the existing file.
//*/
//CHDF5Read::CHDF5Read(const H5std_string& filename)
//:File_Name(filename)
//{
//	try
//	{
//		Exception::dontPrint();
//
//		h5_file=new H5File( File_Name, H5F_ACC_RDONLY);
//	}
//	// catch failure caused by the H5File operations
//	catch( FileIException error )
//	{
//		errMsg=error.getDetailMsg();
//	}
//}
//
//CHDF5Read::~CHDF5Read()
//{
//	if (h5_file!=NULL)
//	{
//		delete h5_file;
//	}
//}
//
//int CHDF5Read::read(void* buf,const H5std_string& datasetname)
//{
//	int res=0;
//	try
//	{
//		DataSet dataset=h5_file->openDataSet(datasetname);
//
//		dataset.read(buf,dataset.getDataType());
//		res=1;
//	}
//	// catch failure caused by the H5File operations
//	catch( FileIException error )
//	{
//		errMsg=error.getDetailMsg();
//	}
//
//	// catch failure caused by the DataSet operations
//	catch( DataSetIException error )
//	{
//		errMsg=error.getDetailMsg();
//	}
//
//	// catch failure caused by the DataSpace operations
//	catch( DataSpaceIException error )
//	{
//		errMsg=error.getDetailMsg();
//	}
//
//	// catch failure caused by the DataSpace operations
//	catch( DataTypeIException error )
//	{
//		errMsg=error.getDetailMsg();
//	}
//
//	return res;
//}
